//
//  XuXianView.m
//  XiongMaoJiaSu
//
//  Created by 徐汉卿 on 16/5/27.
//  Copyright © 2016年 ISOYasser. All rights reserved.
//

#import "XuXianView.h"



@implementation XuXianView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/


-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor = [UIColor clearColor];
    }
    return self;
}

- (void)drawRect:(CGRect)rect

{
//    nslogF
    CGContextRef context =UIGraphicsGetCurrentContext();
    CGContextBeginPath(context);
    CGContextSetLineWidth(context, 2.0);
    CGContextSetStrokeColorWithColor(context, [UIColor darkGrayColor].CGColor);
    CGFloat lengths[] = {8,5};
    CGContextSetLineDash(context, 0, lengths,2);
    CGContextMoveToPoint(context, 10.0, 0);
    CGContextAddLineToPoint(context, rect.size.width,0);
    CGContextStrokePath(context);
//    CGContextClosePath(context);
  
    
}

@end
